package com.ruoyi.project.naming.namesentence.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 起名名句对象 name_sentence
 * 
 * @author shixiangwen
 * @date 2022-07-28
 */
public class NameSentence extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 书籍ID */
    @Excel(name = "书籍ID")
    private Long bookId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 诗句 */
    @Excel(name = "诗句")
    private String sentence;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setSentence(String sentence) 
    {
        this.sentence = sentence;
    }

    public String getSentence() 
    {
        return sentence;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookId", getBookId())
            .append("title", getTitle())
            .append("sentence", getSentence())
            .append("author", getAuthor())
            .toString();
    }
}
